# coding:utf-8

from flask import jsonify
from flask_restful import Resource, reqparse

parser = reqparse.RequestParser()


class Hello(Resource):
    def get(self):
        return jsonify({'code': 'hello world'})


# 直接SQL用法
# from model import db
# sql = 'select * from user;'
# r = db.database.execute_sql(sql)
# for row in r.fetchall():
#     print(row)
